package xlj.lib.android.base.utils;

import com.alibaba.fastjson.JSON;

public class JsonUtil {
    public static <T> T parse(String data,Class<T> clz) {
        return JSON.parseObject(data,clz);
    }

    public static String toJsonStr(Object obj) {
        return JSON.toJSONString(obj);
    }
}
